# start up the game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route, build_form
from forms.wordgame import WordGameFormHandler

# define our routes
game_routes = [build_form('wordgame',WordGameFormHandler),
               build_route('restart','RestartHandler'),
               build_route('startingpoint','StartingPointHandler'),
               build_route('pantry','PantryHandler'),
               build_route('pantryfood','PantryfoodHandler'),
               build_route('vault','VaultHandler'),
               build_route('computerroom','ComputerRoomHandler'),
               build_route('livingquarters','LivingQuartersHandler'),
               build_route('victory_room','VictoryRoomHandler'),
               default_route('startingpoint', 'StartingPointHandler'),
               ]

application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
